home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-05 / netpak23.zip / NETPAK.DOC < prev    next >
Text File  |  1992-10-06  |  23KB  |  485 lines

  1.       ╒═══════════════════════════════════════════════════════════════╕
  2.       │                          NETPAK v2.3                          │
  3.       │                                                               │
  4.       │      A collection of programs for network administrators      │
  5.       ╘═══════════════════════════════════════════════════════════════╛
  6.  
  7. Author: Robert Kirby (CNE Certified NetWare Engineer)
  8.         The Houston Chip Channel 
  9.         Copyright (c) 1990-92
  10.  
  11.         Send 20$ to:
  12.         The Houston Chip Channel
  13.         23126 Willow Run
  14.         Tomball, Tx 77375
  15.  
  16.         Contact me on Compuserve at user id 76620,2313.
  17.  
  18.   These programs are extremely helpful in easing the pains of network
  19.   administration.
  20.  
  21.   The general utilities can be used on any network operating system
  22.   although some are written specifically for Novell NetWare.
  23.  
  24.   These utilities are written in the spirit of automation and
  25.   remote control, and by using them the method of manually passing out
  26.   new/upgraded boot diskettes for network users can be minimized.
  27.  
  28.   This is shareware software, and the registration cost is a mere $20.
  29.   Please register this software so that I can continue to develop 
  30.   software at rock-bottom prices.  
  31.  
  32.   Disclaimer:  Use this software at your own risk.
  33.   
  34.  
  35. Version/revision info:
  36. 3/20/92   NETPAK23   - ver 2.3 A2T ASCII to Telix utility added...
  37.  
  38. 2/14/92   NETPAK22   - ver 2.2 nfoscr.exe added, NEWAUTO changed to NEWCFG
  39.  
  40. 5/16/91   NETPAK20   - version 2.0 - enhancements to utilities and new
  41.                                      utilities added...
  42.  
  43. 8/16/90   NETPAK12   - modified NEWAUTO to have the power to append to the
  44.                        autoexec.bat path statement.
  45.  
  46. 8/12/90   NETPAK11   - modified STATUS program to remove the underbars
  47.                        modified PHASER program to include more sounds
  48.  
  49. 8/01/90   NETPAK10   - version 1.0
  50.  
  51. ────────────────────────────────────────────────────────────────────────
  52. A2T 
  53. ────────────────────────────────────────────────────────────────────────
  54.  
  55. This is an ASCII to Telix dialing directory conversion utility.  The docs
  56. are listed in a separate file called A2T.DOC.
  57.  
  58.  
  59. ────────────────────────────────────────────────────────────────────────
  60. HOWBOUT 1.2
  61. ────────────────────────────────────────────────────────────────────────
  62. Intro:
  63.      This program is used quite extensively to dynamically build directories
  64.      for users on the network.  This is done in situations where disk space
  65.      might be an issue and rather than giving everyone on the network all
  66.      the config files for every program, you can use HOWBOUT to give config
  67.      files to only the users who go in.
  68.  
  69. Operation:
  70.   a) HOWBOUT.EXE sets errorlevel to 0 if a drive or directory or file that
  71.      you give as a command line parameter exists, and 1 if the drive or
  72.      directory or file that you give as a command line parameter doesn't
  73.      exist.  This beats having to use "IF EXIST" in a batch file because
  74.      IF EXIST will hang up if there is some type of disk error such as an
  75.      empty floppy diskette drive.
  76.  
  77.      I have found this little utility to be one of the most useful ones
  78.      yet.  It allows me to dynamically build config subdirectories, so that
  79.      batch files can check for the existance of files, drives, or subdirectories
  80.      and create whatever is needed the first time into an application program.
  81.  
  82.   b) Also provided is a batchfile called WHATBOUT.BAT.  You can use this
  83.      to test the action of HowBout, and see how it would work in your
  84.      own batch files.
  85.  
  86. Syntax:
  87.   HOWBOUT [drive][path][file]
  88.  
  89.   Note:
  90.       HOWBOUT will check for the existance of a file or dir in the A:
  91.       drive without hanging up with "abort/retry" if a diskette isn't
  92.       inserted.  This is very useful for determining if a user on a
  93.       network boots from an A: drive or a C: drive or either.  This is
  94.       done by doing something like:
  95.  
  96.       howbout c:\command.com
  97.       if errorlevel 1 goto ADRIVE
  98.       call upgrade c:
  99.       goto SKIP
  100.       :ADRIVE
  101.       call upgrade a:
  102.       :SKIP
  103.  
  104.   Enhancements:
  105.       HowBout 1.2 will now expand the program parameter in cases where a
  106.       drive letter is given.  This is very useful in networking, when
  107.       trying to shorten parameters.  Therefore if S: expanded is equal to
  108.       s:\users\rkirby, to test for an autoexec.bat file at S: you
  109.       could enter "howbout s:autoexec.bat" rather than the full path of
  110.       "howbout s:\users\rkirby\autoexec.bat".
  111.  
  112.       If you do a "howbout *.*" in a directory that contains no
  113.       subdirectories or files, howbout returns errorlevel 1, but if a
  114.       file or subdirectory is found, howbout returns errorlevel 0.
  115.  
  116.  
  117. ────────────────────────────────────────────────────────────────────────
  118. NEWCFG 1.3
  119. ────────────────────────────────────────────────────────────────────────
  120. Intro:
  121.   NewCFG is a program that will update an autoexec.bat file (or any text
  122.   file) on a given line number for a given number of lines.  NEWCFG reads
  123.   NEW.CFG for its information.  The program was written for administrators
  124.   of networks who have to upgrade autoexec.bat/config.sys files of network
  125.   users.  This can also be used by software developers to upgrade a users
  126.   autoexec.bat/config.sys file.  Some experimentation with this program will
  127.   show that it is very fast and powerful.
  128.  
  129.     The internet that I work in decided on a standard set of environment
  130.   variables, with only one NODE environment variable being on the boot
  131.   drive/diskette, which specified the system number of the PC (4 digit
  132.   number).  This NODE environment variable calls a batch file located on the
  133.   network that loads in the rest of the environment variables descibing
  134.   that particular workstation.  This reduced having to edit the boot disks
  135.   so much, and centralized the location of the different network
  136.   configurations for easier management.  So, something like this is in the
  137.   main system login batch file:
  138.  
  139.   if not exist g:\machine\%node%.bat goto nonode
  140.      call g:\machine\%node%.bat
  141.      goto skip
  142.   :nonode
  143.      call g:\machine\standard.bat
  144.   :skip
  145.  
  146.     What this program did is update the autoexec.bat file of the users as
  147.   they were logging in to the newer NODE system.  It removed all the old
  148.   environment variables, and put in the new NODE environment variable
  149.   based on the room number of the person logging into the network.  The
  150.   users select their room number from a pop up list and the proper node
  151.   number environment variable is written to their autoexec.bat file and
  152.   the old variables are removed.  The NODE environment variable option
  153.   can be bypassed, as explained in further detail below.
  154.  
  155. Syntax:
  156.     NEWCFG.EXE will accept 3 parameters.  The 1st parameter is the name of
  157.   the file you want to update and is required.  The 2nd and 3rd parameters
  158.   are optional, they are the line number of the file that you want to begin
  159.   adding new lines and the -N switch which turns on the NODE room number
  160.   list display.  If the -N (or -P) parameter is left off, lines are added or
  161.   removed from the given file without user intervention, and the list will
  162.   not be seen and the special node variable will not be added to the file.
  163.   If the line number parameter is left off then the new lines will be added
  164.   starting at line number 2 of the file.
  165.  
  166.   NEWCFG [path]MYFILE [Linenumber] [preference options: -n,-p]
  167.  
  168.   [path]MYFILE :
  169.     This is the name of a valid file to update.  This is a required
  170.   parameter to NEWCFG.  If not given the program will terminate.  The
  171.   validity (or existance) of the file can be tested with HOWBOUT.
  172.  
  173.   [Linenumber]
  174.     This is an optional parameter which is the beginning line number to
  175.   begin adding lines.  NEWCFG will begin adding new lines in the file in
  176.   question beginning with this line number.  If left off, the default is 2.
  177.  
  178.   [preference options]
  179.     -N,-n : If this parameter is given, the users will see the pop up
  180.   scrollable list of room numbers.  The room numbers are tied to the
  181.   system node numbers which are written to the file in question to
  182.   complete the : SET NODE=  line in new.cfg.  This variable will
  183.   always be added to the 1st line (the special line) in new.cfg.
  184.     -P,-p : If this parameter is given, the users file in question will
  185.   be searched for a line that contains : PATH= and the 1st line in
  186.   new.cfg (the special line) will be appended to the path statement.
  187.   In this instance, you would place something like : \mysub\subdir in
  188.   the 1st input line of New.CFG and \mysub\subdir will be appended
  189.   to the path statement.  Of course, if you have no path statement then
  190.   the 1st valid line in new.cfg (the special line) will not be added
  191.   to anything.
  192.     If you give neither of the above parameters, the lines can be added
  193.   and removed from the file in question, with no special significance
  194.   placed on the 1st valid line in new.cfg.
  195.  
  196.  
  197.   NEW.CFG :
  198.     NEWCFG looks for a text file called NEW.CFG.  If this isn't found
  199.   the program will terminate.  If NEW.CFG isn't in the current directory
  200.   then the environment PATH will be searched.  First the lines to be added
  201.   are read, then the lines to be deleted are read, the the node / room
  202.   numbers are read.  Any lines that contain a semicolon in the 1st column
  203.   or blank lines are completely ignored.
  204.     You can place up to 20 new lines into someone's file and so you could
  205.   have 20 lines to add.  These lines are terminated with a * delimiter in
  206.   the first column of the following line.  The 1st line of the new lines
  207.   listed in NEW.CFG is special, this is the line that the user-selected
  208.   NODE variable is added to if the optional -N commandline switch is used.
  209.   The is why this line will look like :  SET NODE=  if you are using the
  210.   option -N switch.  Also note: the lines to be added are also DELETED from
  211.   the file so that if a user makes a mistake, they can rerun the program
  212.   and all previously added lines are deleted so they wont conflict with
  213.   the new lines.
  214.     Next, you can delete up to 20 lines from someone's file, so you can
  215.   have 20 lines here.  These lines are also terminated with a * delimiter
  216.   in the first column of the following line.  The strings that you give
  217.   here must be an exact match, although they aren't case sensitive.  This
  218.   is where old environment variables etc.. can be deleted.
  219.     Next, if the optional -N commandline switch is used, a list of node
  220.   numbers and room numbers are read.  This list is constructed into a
  221.   user-selectable room number list, so the users choose from a list of
  222.   room numbers and in the background the proper node number tied with the
  223.   room number is added to the line "SET NODE=".  The four digit node system
  224.   number is listed beginning in the 1st column and beginning in the
  225.   5th column a room number is listed on each line for the number of nodes.
  226.   Up to 255 nodes can be specified.  To change these parameters the source
  227.   code can be easily modified, although having more than 255 nodes would
  228.   also entail changing the source to the listttt5 unit in the Turbo
  229.   Technojock's Toolkit.
  230.  
  231. Example:
  232.   ;   this is a sample new.cfg file, the following are lines to add:
  233.   ;   note these strings will also be deleted (for reruns of the program)
  234.   ;   if they exist in the file already.  up to 20 lines can be added
  235.   SET NODE=
  236.   ECHO NODE %NODE% Booting into the Network...
  237.   *
  238.   ; lines to delete (up to 20 lines)
  239.   SET GRAFCARD=VGA
  240.   SET GRAFCARD=MONO
  241.   SET GRAFCARD=EGA
  242.   *
  243.   ; node number <space> room number - the user selects the room number.
  244.   ; up to 255 node number <space> room number lines.
  245.   7205 1165A
  246.   7206 1160
  247.   7207 1163
  248.   <eof>
  249.  
  250.   Enhancements:
  251.   If you give a parameter of 1 for linenumber, NEWCFG assumes that you are
  252.   not processing a batch file, but a text file.  If the 1 parameter is given
  253.   for a linenumber then the preference options parameter should be left off.
  254.   The 1 parameter is useful for placing titles at the top of text files.
  255.   If the 1 parameter is given, it will only add a line to the top of the
  256.   file.
  257.  
  258.   NewCFG will now automatically delete empty lines from files.  This is
  259.   preferred when processing large text files.
  260.  
  261.   The figures of 10 lines to add and 10 lines to delete have been increased
  262.   to 20.
  263.  
  264. ────────────────────────────────────────────────────────────────────────
  265. NFOSCR 1.0
  266. ────────────────────────────────────────────────────────────────────────
  267. Purpose:
  268.   NFOSCR.EXE will display a screen of useful network information.
  269.   This information is Novell NetWork specific.  This will help out in
  270.   getting information from a user over the phone.
  271.  
  272. Syntax:
  273.   NFOSCR -p=help_desk_phone_number [%LOGIN_NAME] [*] [One line message]
  274.  
  275.   The program converts the command line parameters into either a one line
  276.   or a screen full of network info.  To create the info screen, a '*' is
  277.   inserted on the command line to separate the login name from the message.
  278.   The login name is listed first.  A one line message is then listed that
  279.   will be displayed at the bottom of the information screen.
  280.  
  281.   If the '*' is left off, then the message is displayed as a one line message.
  282.  
  283. Example:
  284. NFOSCR RAKIRBY, * Enter LO to logout, LI to login, or GO to return to the menu.
  285.  
  286. ────────────────────────────────────────────────────────────────────────
  287. NWPRINT 1.0  NetWare Print Utility
  288. ────────────────────────────────────────────────────────────────────────
  289. Purpose:
  290.   This program is a front-end to the netware print command call NPRINT.
  291.   It will allow you to quickly build a batch file that will send any
  292.   number of print jobs to any number of print queues on the network.
  293.   This was mainly written for CAD users to send batch plots at night
  294.   to various queues, but it can be applied by anyone on the network.
  295.  
  296. Syntax:
  297.   NWPRINT [path]outfile.bat [parameter 1-6]
  298.  
  299.     This program will display a screen of sequential data entry fields
  300.   (mouse is supported).  First a network print queue list will pop up.
  301.   You select a print queue from this list.  Next, you are asked whether
  302.   you want to send output to the queue or view the status of the queue.
  303.   
  304.   Note, you will need a QLIST.EXE to view the status of a queue.  I did
  305.   not write QLIST.EXE, and have no idea who did.  I found it on Compuserve
  306.   (along with the source code) and found it to be useful in viewing the 
  307.   status of network queues in the NetWare environment.  You can find it 
  308.   there in the NetWare forums on Compuserve....
  309.   
  310.   If you want to view the status of the queue, this action will be taken
  311.   and you will be asked if you want to continue.  If you want to send
  312.   output to a queue, you will next be asked how many copies, and then
  313.   a directory listing will display.  You then select a file entry from
  314.   the directory.  This NPRINT line is then written to the file you specified
  315.   on the command line.  You are then asked if you want to continue, if so,
  316.   the queue list is displayed again.  In this way you can send any number
  317.   of files to any number of network print queues.
  318.     I have also included a batch file called NETPRINT.BAT that executes
  319.   NWPRINT in a real world situation as an example of how NWPRINT can be
  320.   used.
  321.  
  322.   [path]outfile.bat
  323.     This is the printing batch file that is built with NWPRINT.  The
  324.   entries of this file will be displayed at the bottom of the screen as
  325.   they are created.
  326.  
  327.   [parameter 1-6]
  328.     NWPRINT will accept 6 additional NPRINT parameters.  In other words,
  329.   NWPRINT will accept the parameters that NPRINT accepts.  The copy and
  330.   queue parameters are already inherent in the program execution.
  331.  
  332.   NWPRINT.CFG:
  333.     This file is required.  It may either be with the program or it may
  334.   be in your current directory.  This is so that everyone on the network
  335.   can have their own nwprint.cfg file along with having a default (in case
  336.   they don't have one) with the program.  NWPRINT.CFG is built in this way:
  337.  
  338.   i:\lib\*.*   {this is a filespec for your printing data directory}
  339.   queue1       {these are the network print queues listed.
  340.   queue2
  341.   queue3
  342.   queue4
  343.  
  344.  
  345. ────────────────────────────────────────────────────────────────────────
  346. PHASER 1.1
  347. ────────────────────────────────────────────────────────────────────────
  348. Purpose:
  349.   This program is similar to the FIRE PHASERS command in the login script
  350.   language of NetWare.  Sometimes it's fun to use those sort of sounds in
  351.   a batch file also..  So this program was written.  PHASER has been
  352.   expanded to include a hodge podge of sounds to make life on the network
  353.   a little more interesting.  It is much more exciting that the typical
  354.   batch file beep.
  355.  
  356. Syntax:
  357.   PHASER [flavor] [# of times to fire] [ending pitch]
  358.  
  359. * Special Note: The order of the parameters has been changed!  If you are
  360.   currently using an old version of Phaser please notice that the number
  361.   of repetitions now comes 1st on the command line, and the frequency is
  362.   the last of all.  If you don't update this, the user might end up with
  363.   600 (or whatever) repetitions of Phaser!
  364.  
  365.   flavor :
  366.     You can pick from 4 different flavors of sounds.  The default is the
  367.     NetWare FIRE PHASER sound unless you give no parameter at all, then
  368.     you will get the ordinary sounding beep.  The flavor parameter must
  369.     be the first in the command line if it is there at all.  Here are
  370.     the different sounds:
  371.  
  372.     -n : NetWare FIRE PHASERS (this is the default if other parameters
  373.          are given on the command line, but a standard beep will sound
  374.          if no parameters at all are given.)
  375.  
  376.     -w : Weird sound, sounds sort of like the opening sound to the DR. WHO
  377.          show.
  378.  
  379.     -r : Random sound.  This one is best done with a very high pitch
  380.          parameter.  This sounds like the SCI FI background computer bleeps.
  381.  
  382.     -b : And last but not least, the Bugs Bunny song.  This only only takes
  383.          one parameter, that is pitch and number of times to play are ignored.
  384.          It will only play once, once is enough!
  385.  
  386.  
  387.   number of times to fire:
  388.     this is the number of times to make the sound you pick.  (excluding the
  389.     Bugs Bunny Song which only plays one time).  This parameter always
  390.     comes before the pitch parameter.  If left off the default is 3 times.
  391.  
  392.   ending pitch:
  393.     this is generally the last pitch of the sound that you pick.  The NetWare
  394.     FIRE PHASERS sound and the Dr. WHO sound both descend in pitch until this
  395.     pitch is given.  If left off the default is 50 Hz.
  396.  
  397.   examples:
  398.  
  399.     PHASER 3          = FIRE PHASERS 3 TIMES (ending at 50 Hz)
  400.     PHASER            = Plain jane PC BEEP
  401.     PHASER -w 3       = Make DR.WHO sound 3 times (ending at 50 Hz)
  402.     PHASER -w 4 300   = Make DR.WHO sound 4 times (ending at 300 Hz)
  403.     PHASER -r 2 3000  = Make random computer Bleeps for 2 durations
  404.                         using 3000 Hz as a seed to the random generator
  405.     PHASER -b         = feeble attempt at the bugs bunny song
  406.     PHASER -n 3 400   = NetWare FIRE PHASERS 3 times (ending at 400 Hz)
  407.  
  408.  
  409. ────────────────────────────────────────────────────────────────────────
  410. QUEST 1.1
  411. ────────────────────────────────────────────────────────────────────────
  412. Purpose:
  413.   This is a LAN questionnaire program.  When the boss said, "we need to hand
  414.   out a questionnaire to get some feedback"..  I saw tons of paperwork in
  415.   front of me.  With this program, not one piece of paper was used.
  416.  
  417. Improvements:
  418.   The questionnaire has been improved by giving users the option of browsing
  419.   the questions (and not writing to the response file).  If the username
  420.   field is left blank, the user is considered to be browsing.  Writing to
  421.   the response file only occurs when a particular response is answered.  If
  422.   nothing is answered, nothing is written to the response file except
  423.   the questions (when they are not browsing).  If they are browsing, nothing
  424.   is written to the response file.
  425.  
  426.   You may now also give a path/filename for the response file.  In this way,
  427.   you can have the program location in one directory and the response file
  428.   that is created can be located in another directory.  This is for situations
  429.   where you might desire to create some sort of dropbox.  If you do not give
  430.   the response filename as a parameter to the program, then the program will
  431.   default back to response.dat located in the current program directory.
  432.  
  433. How its done:
  434.   The program reads a file called question.dat to get 8 questions that you
  435.   will ask the network users.  The program then builds a file called
  436.   response.dat that places their responses and names into the file.  The
  437.   program performs a file lock on the response file so only one can update
  438.   it at a time.  If someone else is in, the person will get a message telling
  439.   them to try again later.  For this program to operate properly, the user must
  440.   have the program directory as their current directory.
  441.  
  442.   There are 4 files that come into play:
  443.   QUEST.EXE    --- the main program
  444.   ACTIV.FLG    --- a little flag created when someone is in the program.
  445.                    if someone reboots while filling out the questionnaire,
  446.                    you might have to delete this flag.  It keeps several
  447.                    people from writing to response.dat at once.  This
  448.                    file isn't included in this archive since it is created.
  449.   QUESTION.DAT --- This contains eight questions of your own design.
  450.                    (only one line per question)
  451.   RESPONSE.DAT --- This is the response file that is built (you may change
  452.                    this name with the optional filename parameter)
  453.  
  454.  
  455. ────────────────────────────────────────────────────────────────────────
  456. STATUS 1.1
  457. ────────────────────────────────────────────────────────────────────────
  458. Purpose:
  459.   STATUS.EXE will display a fancy message at the top of a screen.  This
  460.   is for informing network users of the status of the current program
  461.   they are trying to execute.  It writes to the screen extremely fast,
  462.   and therefore beats having to use the "ECHO" command in batch files
  463.   which is slow.  This had been modified to just take the place of the
  464.   echo command in batch files.  (note: the previous version of NETPAK
  465.   used UNDERBARS to designate spaces, but this was cumbersome so the
  466.   program was updated to avoid the underbars).  Also the program has
  467.   been tweaked a little to speed things up as fast as possible.
  468.  
  469. Syntax:
  470.   STATUS [name of the application] [*] [status of current application]
  471.  
  472.   The program converts the command line parameters into either a one line
  473.   or two line message.  To create a two line message, a '*' is inserted
  474.   on the command line to separate the two messages.  The 1st message is
  475.   the name of the application being executed and the 2nd message is the
  476.   status of the application.  If the '*' is left off, then the message is
  477.   displayed as a one line message.
  478.  
  479. Example:
  480.    rem displays a 2 line message
  481.    Status WordPerfect 5.1 Now Loading * Please be patient...
  482.    rem displays a 1 line message
  483.    status Enter LO to logout or GO to return to the network menu.
  484.  
  485.